<?php
if(!empty($menu)){
	foreach($menu as $value)
	{				
		echo "<li><a href='".base_url().'admin/'.$value['link']."'>{$value['name']}</a>";
		if(!empty($value['child_list'])):
			echo '<ul>';
			foreach($value['child_list'] as $item):
				echo "<li><a href='".base_url().'admin/'.$item['link']."'>{$item['name']}</a></li>";
			endforeach;
			echo '</ul>';
		endif;
		echo '</li>';	
	}
}
?>